import request from '@/utils/request'

enum Api {
  list = '/patrolJobMultiTerminalReport/loadReportList',
  delOne = '/patrolJobMultiTerminalReport/deleteReport'
}

/**
 * 列表
 * @param data
 */
export const list = async (data: {
  pageNum: number
  pageSize: number
  reportName: string
}) => {
  return await request.post(Api.list, { data })
}

/**
 * 删除
 * @param id
 */
export const delOne = async (params: { id: number }) => {
  return await request.get(Api.delOne, { params })
}
